﻿import 'package:star_author/generated/json/base/json_convert_content.dart';
import 'package:star_author/model/push_msg_info_entity.dart';

PushMsgInfoEntity $PushMsgInfoEntityFromJson(Map<String, dynamic> json) {
	final PushMsgInfoEntity pushMsgInfoEntity = PushMsgInfoEntity();
	final String? msgId = jsonConvert.convert<String>(json['msgId']);
	if (msgId != null) {
		pushMsgInfoEntity.msgId = msgId;
	}
	final String? title = jsonConvert.convert<String>(json['title']);
	if (title != null) {
		pushMsgInfoEntity.title = title;
	}
	final String? content = jsonConvert.convert<String>(json['content']);
	if (content != null) {
		pushMsgInfoEntity.content = content;
	}
	final String? jumpPath = jsonConvert.convert<String>(json['jumpPath']);
	if (jumpPath != null) {
		pushMsgInfoEntity.jumpPath = jumpPath;
	}
	final String? action = jsonConvert.convert<String>(json['action']);
	if (action != null) {
		pushMsgInfoEntity.action = action;
	}
	return pushMsgInfoEntity;
}

Map<String, dynamic> $PushMsgInfoEntityToJson(PushMsgInfoEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['msgId'] = entity.msgId;
	data['title'] = entity.title;
	data['content'] = entity.content;
	data['jumpPath'] = entity.jumpPath;
	data['action'] = entity.action;
	return data;
}